package com.etc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.etc.dao.RegistrationMapper;
import com.etc.entity.Registration;
import com.etc.service.RegistrationService;
/**
 * 预约挂号service层实现类
 * @author 小白
 *
 */
@Service(value="registrationService")
public class RegistrationServiceImpl implements RegistrationService {
	@Autowired
	private RegistrationMapper registrationMapper;
	/**
	 * 新增预约挂号
	 * 
	 * @param record
	 * @return
	 */
	@Override
	public int insert(Registration record) {
		// TODO Auto-generated method stub
		return registrationMapper.insert(record);
	}
	/**
	 * 查询所有预约对象
	 */
	@Override
	public List<Registration> selectRegistration() {
		// TODO Auto-generated method stub
		return registrationMapper.selectRegistration();
	}
}
